<?php

namespace summer\swoole\pool\contract;

interface FrequencyInterface
{
    /**
     * Number of hit per time.
     */
    function hit(int $number = 1): bool;

    /**
     * Hits per second.
     */
    function frequency(): float;
}